﻿// SimpleLevelAllInTeam
namespace BattleBuddyplug
{
    public partial class configForm
    {
        public void SimpleLevelAllInTeamInit()
        {
            //Logging.Write("init simple level all in team");
            BattleBuddy._QuickSettingsNames.Add("Level all pets in current team");
            BattleBuddy._QuickSettingsDescriptions.Add("Enables GatherBuddy2, PetArea and manages the settings." + System.Environment.NewLine + System.Environment.NewLine + "Perfect for leveling your first team");
            BattleBuddy._QuickSettingsFunctions.Add("SimpleLevelAllInTeamExecute");
        }

        public void SimpleLevelAllInTeamExecute()
        {
            // ProfileManager.LoadEmpty();
            // EnablePlugin("PetArea");
            SetBotBase("gather");

            BattleBuddy._MySettings.AboveLevel = 5;
            BattleBuddy._MySettings.AdFactor = 2;
            BattleBuddy._MySettings.BelowLevel = 3;
            BattleBuddy._MySettings.DisFactor = 2;
            BattleBuddy._MySettings.Distance = 300;
            BattleBuddy._MySettings.DoPreCombatSwapping = true;
            BattleBuddy._MySettings.DoPVP = false;
            BattleBuddy._MySettings.ForfeitIfNotInteresting = false;
            BattleBuddy._MySettings.GetRarity = 3;    // 1 common, 2 uncommon, 3 rare
            BattleBuddy._MySettings.HPFactor = 10;
            BattleBuddy._MySettings.LevelFactor = -20;
            BattleBuddy._MySettings.MinPetsAlive = 1;
            BattleBuddy._MySettings.PVPMaxTime = 1;
            BattleBuddy._MySettings.PVPMinTime = 0;
            BattleBuddy._MySettings.UseBandagesToHeal = 0;

            BattleBuddy._MySettings.UseBlackList = true;
            BattleBuddy._MySettings.UseHealSkill = 1;
            BattleBuddy._MySettings.UseRatingSystem = true;
            BattleBuddy._MySettings.UseWhiteList = false;
            BattleBuddy._MySettings.PetOrder = "1,2,3";
            closeForm();
        }
    }
}
